package com.xiaoq.sites.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xiaoq.sites.entity.MerchantEntity;
import com.xiaoq.sites.repository.IMerchantRepository;
import com.xiaoq.sites.repository.ISitesRepository;
import com.xiaoq.sites.service.IMerchantService;

@Component
public class MerchantServiceImpl implements IMerchantService {

	@Autowired
	private ISitesRepository sitesRep;
	
	
	@Autowired
	private IMerchantRepository merchantRep;
	
	@Override
	public boolean save(MerchantEntity merchant) {
		
		return merchantRep.save(merchant);
	}

	@Override
	public MerchantEntity findById(String id) {
		return merchantRep.findById(id);
	}

}
